import { type IColumn } from './column'
import type { IBaseData } from './data'
import { type ITableOptions, type SelectionMode } from './table'

/**
 * 渲染器配置
 */
export interface IRendererOptions extends Omit<ITableOptions, 'dataSource' | 'columns'> {
  width: number
  height: number
  dataSource: IBaseData[]
  columns: IColumn[]
  rowHeight: number
  dpr: number
  getRowData: (index: number) => any
  getTotalRows: () => number
  selectionMode: SelectionMode
}
